package com.huwaiwai001.arraylist;

/**
 * Created by hww on 2018/9/24 下午11:33.
 */
public class Test {
    public static void main(String [] args) {

        MyArrayList<Integer> list = new MyArrayList<>(2);

        System.out.println(list.length());
        System.out.println(list.size());

        list.add(1);
        System.out.println(list.size());

        list.add(1);
        System.out.println(list.size());

        list.add(1);
        System.out.println(list.size());
        System.out.println(list.length());


        list.add(1);
        System.out.println(list.size());
        System.out.println(list.length());



    }




}
